package com.litong.spring.mvc.mybatis.v311.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tbl_employee")
public class Employee {
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  @TableField(value = "last_name")
  private String lastName;
  private String email;
  private Integer gender;
  private Integer age;
}